
<template>
    <div class="single_p" @click="goUrl">
        -<span v-if="label" style="color:#A60F0E;margin:0 8px 0 5px;">[{{label}}]</span>{{info}}
    </div>
</template>

<script>
export default {
  name: 'SingleItem',
  props: {
    label: String,
    info: String,
    id: String
  },
  methods:{
    goUrl(){
      alert('跳转到详情页===>'+JSON.stringify(this.id));
      // window.open(this.id);
    }
  }
}
</script>

<style scoped lang="scss">
.single_p{
  color:#444444;
  padding:1px 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.45;
}
</style>
